package model

import "github.com/lib/pq"

type FirmwareTypeCreateRequest struct {
	Id          int64  `json:"id"`
	Name        string `json:"name" binging:"required"`
	Description string `json:"description"`
}

type FirmwareTypeUpdateRequest struct {
	Id          int64   `json:"id"`
	Name        *string `json:"name"`
	Description *string `json:"description"`
	CreatedAt   *int64  `json:"created_at"`
	UpdatedAt   *int64  `json:"updated_at"`
}
type FirmwareTypeListRequest struct {
	Id          int64         `json:"id"`
	Ids         pq.Int64Array `json:"ids"`
	Name        *string       `json:"name"`
	Description *string       `json:"description"`
	CreatedAt   *int64        `json:"created_at"`
	UpdatedAt   *int64        `json:"updated_at"`
	Index       int           `json:"index"`
	Size        int           `json:"size"`
}
type FirmwareTypeListResponse struct {
	Total int                 `json:"total"`
	List  []*FirmwareTypeInfo `json:"list"`
}
type FirmwareTypeInfoRequest struct {
	Id   int64   `json:"id"`
	Name *string `json:"name"`
}
type FirmwareTypeInfo struct {
	Id          int64  `json:"id"`
	Name        string `json:"name"`
	Description string `json:"description"`
	CreatedAt   int64  `json:"created_at"`
	UpdatedAt   int64  `json:"updated_at"`
}
type FirmwareTypeDeleteRequest struct {
	Id int64 `json:"id"`
}
